package com.shsxt.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Notified  extends BaseQuery {
	private String notifiedContent;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private String notifiedTime;
	private String type;
	private String id;
	private String state;
	private String phoneNumber;
	private String detailType;

	public String getDetailType() {
		return detailType;
	}
	public void setDetailType(String detailType) {
		this.detailType = detailType;
	}
	public Notified(String notifiedContent, String notifiedTime, String type, String id, String state,
			String phoneNumber, String detailType) {
		super();
		this.notifiedContent = notifiedContent;
		this.notifiedTime = notifiedTime;
		this.type = type;
		this.id = id;
		this.state = state;
		this.phoneNumber = phoneNumber;
		this.detailType = detailType;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public Notified(String notifiedContent, String notifiedTime, String type, String id, String state,
			String phoneNumber) {
		super();
		this.notifiedContent = notifiedContent;
		this.notifiedTime = notifiedTime;
		this.type = type;
		this.id = id;
		this.state = state;
		this.phoneNumber = phoneNumber;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Notified(String notifiedContent, String notifiedTime, String type, String id, String state) {
		super();
		this.notifiedContent = notifiedContent;
		this.notifiedTime = notifiedTime;
		this.type = type;
		this.id = id;
		this.state = state;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Notified(String notifiedContent, String notifiedTime, String type, String id) {
		super();
		this.notifiedContent = notifiedContent;
		this.notifiedTime = notifiedTime;
		this.type = type;
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Notified(String notifiedContent, String notifiedTime, String type) {
		super();
		this.notifiedContent = notifiedContent;
		this.notifiedTime = notifiedTime;
		this.type = type;
	}
	
	
	@Override
	public String toString() {
		return "Notified [notifiedContent=" + notifiedContent + ", notifiedTime=" + notifiedTime + ", type=" + type
				+ ", id=" + id + ", state=" + state + ", phoneNumber=" + phoneNumber + "]";
	}
	public Notified() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Notified(String notifiedContent, String notifiedTime) {
		super();
		this.notifiedContent = notifiedContent;
		this.notifiedTime = notifiedTime;
	}
	public String getNotifiedContent() {
		return notifiedContent;
	}
	public void setNotifiedContent(String notifiedContent) {
		this.notifiedContent = notifiedContent;
	}
	public String getNotifiedTime() {
		return notifiedTime;
	}
	public void setNotifiedTime(Date xxx) {
		SimpleDateFormat sp=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		this.notifiedTime = sp.format(xxx);
	}
	
}
